package com.karina.visualization.chart.model;

import java.util.ArrayList;
import java.util.List;

public class YAxisModel extends AxisModels {

	private double max_value = 100;

	private int breakpoint_num = 5;

	private List<String> categories = new ArrayList<String>();

	public void setMaxValue(double maxValues) {
		max_value = maxValues;
	}

	public double getMaxValue() {
		return max_value;
	}

	public List<String> getCategories() {
		double gap = max_value / breakpoint_num;
		double val = 0;
		categories = new ArrayList<String>();
		while (val < max_value) {
			categories.add((new Double(gap)).toString());
			val += gap;
		}
		return categories;
	}

	public void setBreakpointNum(int breakpoint_num) {
		this.breakpoint_num = breakpoint_num;
	}

	public int getBreakpointNum() {
		return breakpoint_num;
	}

}
